import i18n from '@/lang'
// 系统日志列表表头,列带有special属性值为true时，说时需要单独处理单元中的值
export const sysLogTbColumns = [{
  title: i18n.t('logTitle'),
  dataIndex: 'title',
  scopedSlots: {
    customRender: 'logTitle'
  },
  width: 140
}, {
  title: i18n.t('logType'),
  dataIndex: 'type',
  scopedSlots: {
    customRender: 'logType'
  },
  special: true,
  width: 120
}, {
  title: i18n.t('operationUser'),
  dataIndex: 'createBy',
  scopedSlots: {
    customRender: 'operationUser'
  },
  width: 130
}, {
  title: i18n.t('actionAssessment'),
  dataIndex: 'exception',
  scopedSlots: {
    customRender: 'exception'
  },
  width: 130
}, {
  title: i18n.t('operationTime'),
  dataIndex: 'createTime',
  scopedSlots: {
    customRender: 'createTime'
  },
  width: 130,
  special: true,
  sorter: true
}, {
  title: i18n.t('clientIP'),
  dataIndex: 'remoteAddress',
  scopedSlots: {
    customRender: 'clientIP'
  },
  width: 130
}, {
  title: i18n.t('accessDevice'),
  dataIndex: 'deviceInfo',
  scopedSlots: {
    customRender: 'accessDevice'
  },
  width: 130
}, {
  title: i18n.t('browserName'),
  dataIndex: 'browserName',
  scopedSlots: {
    customRender: 'browserName'
  },
  width: 130
}, {
  title: i18n.t('responseTime'),
  dataIndex: 'executeTime',
  scopedSlots: {
    customRender: 'responseTime'
  },
  width: 130,
  special: true
}]
